-
Notifications
You must be signed in to change notification settings - Fork 485
a few orchestratord refactors in preparation for adding additional controllers #34337
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
33e22aa to
e81e9c1
Compare
| #[clap(long)] | ||
| aws_account_id: Option<String>, | ||
| #[clap(long)] | ||
| environmentd_iam_role_arn: Option<String>, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The refactor is fine, but it does remind me that we should we should be probalby have prefixed the flags with the cloud, iam_role_arn is pretty AWS specific, but being explicit that it's AWS would've been nice.
jubrad
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. Very minor comments.
| ); | ||
| // the only way this can return an error is if we drop the writer, | ||
| // which we do not ever do, so unwrap is fine | ||
| store.wait_until_ready().await.unwrap(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit - probably viable to put use expect... expect("writer dropped")
|
|
||
| #[derive(Clone, Deserialize, Default)] | ||
| #[serde(rename_all = "camelCase")] | ||
| pub struct DefaultCertificateSpecs { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should this be in orchestratord/src/tls.rs?
Motivation
make it easier to split up some of our logic here into separate controllers
Tips for reviewer
this shouldn't result in any functional changes, only moving code around
Checklist
$T ⇔ Proto$Tmapping (possibly in a backwards-incompatible way), then it is tagged with aT-protolabel.